package com.erebus.tool;



import com.alibaba.nacos.shaded.com.google.protobuf.Message;

import java.util.List;

public interface ChatMemory {

    default void add(String conversationId, Message message) {
        this.add(conversationId, List.of(message));
    }

    void add(String conversationId, List<Message> messages);

    List<Message> get(String conversationId, int lastN);

    void clear(String conversationId);
}
